// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;
import static javax.persistence.GenerationType.IDENTITY;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * CataloginventoryStock generated by hbm2java
 */
@Entity
@Table(name = "cataloginventory_stock", catalog = "magento")
public class CataloginventoryStock implements java.io.Serializable {
	private static final long serialVersionUID = 121323L;

	private Short stockId;
	private String stockName;
	private Set cataloginventoryStockStatuses = new HashSet(0);
	private Set cataloginventoryStockItems = new HashSet(0);

	public CataloginventoryStock() {
	}

	public CataloginventoryStock(String stockName,
			Set cataloginventoryStockStatuses, Set cataloginventoryStockItems) {
		this.stockName = stockName;
		this.cataloginventoryStockStatuses = cataloginventoryStockStatuses;
		this.cataloginventoryStockItems = cataloginventoryStockItems;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "stock_id", unique = true, nullable = false)
	public Short getStockId() {
		return this.stockId;
	}

	public void setStockId(Short stockId) {
		this.stockId = stockId;
	}

	@Column(name = "stock_name")
	public String getStockName() {
		return this.stockName;
	}

	public void setStockName(String stockName) {
		this.stockName = stockName;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "cataloginventoryStock")
	public Set getCataloginventoryStockStatuses() {
		return this.cataloginventoryStockStatuses;
	}

	public void setCataloginventoryStockStatuses(
			Set cataloginventoryStockStatuses) {
		this.cataloginventoryStockStatuses = cataloginventoryStockStatuses;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "cataloginventoryStock")
	public Set getCataloginventoryStockItems() {
		return this.cataloginventoryStockItems;
	}

	public void setCataloginventoryStockItems(Set cataloginventoryStockItems) {
		this.cataloginventoryStockItems = cataloginventoryStockItems;
	}

}
